import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 *  * 生产领料
 * */
// 创建
export const productionArrivedGoodsCreate = (data) => postRequest('/production/arrived-goods/create', data);

// 更新
export const productionArrivedGoodsUpdate = (data) => putRequest('/production/arrived-goods/update', data);

// 删除
export const productionArrivedGoodsDelete = (params) => deleteRequest('/production/arrived-goods/delete', params);

// 获得
export const productionArrivedGoodsGet = (params) => getRequest('/production/arrived-goods/get', params);

// 获得分页
export const productionArrivedGoodsPage = (params) => getRequest('/production/arrived-goods/page', params);

// 子项状态
export const productionArrivedGoodsCloseItem = (params) => postRequest('/production/arrived-goods/close-item', params);

// 子项状态撤销
export const productionArrivedGoodsCleanCloseItem = (params) => postRequest('/production/arrived-goods/clean_close-item', params);

// 状态
export const productionArrivedGoodsUpdateAuditState = (params) => postRequest('/production/arrived-goods/update-audit-state', params);

// 获得到货单品种
export const productionArrivedGoodsGetProduct = (params) => getRequest('/production/arrived-goods/get-product', params);

// 根据编码获得到货单子项
export const productionArrivedGoodsGetByProductCode = (params) => getRequest('/production/arrived-goods/get-by-product-code', params);
